package main.controller;

import main.dao.FocusMapper;
import main.dao.entity.Focus;

import main.service.applicationService;
import org.springframework.context.ApplicationContext;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class Usercontroller extends Basecontroller
{

    @RequestMapping("acb")
    public  @ResponseBody
    Focus select(int id) throws Exception{
        ApplicationContext applicationContext = applicationService.getApplicationContext();
        FocusMapper mp = applicationContext.getBean(FocusMapper.class);
        return mp.selectByPrimaryKey(id);
    }
}
